<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./styles/general.css" rel="stylesheet" type="text/css" />
<link href="./styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../images/jquery.js"></script>
<style>
table tr td{ text-align:center;}
</style>
<title></title>
<script type="text/javascript">
	$(function(){
		if(<{$product_listdata}>)
		{
				$("#product_id"+<{$product_listdata}>).attr("checked","checked")
		}
	});
	
	function get_checked_product()
	{
		var f = $('[name = productlist]:checked').val();
		return f;
	}
	
	function get_checked_product_name()
	{
		var name = $('[name = productlist]:checked').attr('title');
		return name;
	}

</script>
</head>
<body style="width:710px;">
<form method="POST" action="./product.php?action=SearchProductListInDetail ">

    <img height="22" border="0" width="26" alt="SEARCH" src="../images/icon_search.gif">
    <!-- 推荐 -->
    <select name="product_is_recommend"><option value="0">是否推荐</option>
    <option value="1" <{if $product_is_recommend == 1}> selected="selected" <{/if}> >推荐</option>
    <option value="2" <{if $product_is_recommend == 2}> selected="selected" <{/if}> > 未推荐</option>
    </select>
    <!-- 发布-->
    <select name="product_state"><option value="0">是否发布</option>
    <option value="1" <{if $product_state == 1}> selected="selected" <{/if}> >发布</option>
    <option value="2" <{if $product_state == 2}> selected="selected" <{/if}> >未发布</option>
    </select>
    
    <select name="search_type">
    <option value="0" <{if $search_type == 0}> selected="selected" <{/if}> >产品编号</option>
    <option value="1" <{if $search_type == 1}> selected="selected" <{/if}> >产品名称</option>
    </select>
    <input type="hidden" value="<{$product_platform}>" name="product_plat" />
        <!-- 关键字 -->
    关键字 <input type="text" size="25" name="search_key" value="<{$search_key}>">
    品牌 <select name="product_brand">
     <option value="" >请选择品牌</option>
    <{foreach from=$allBrand key=key item=value}>
    <option value="<{$value.product_brand}>" <{if $value.product_brand == $product_brand}> selected="selected" <{/if}> ><{$value.product_brand}></option>
	 <{/foreach}>
    </select>
    <input type="submit" class="button"  name="search" value=" 搜索 ">
    <input type="hidden" value="display_two" name="display_type"> 
    <input type="hidden" value="<{$product_listdata}>" name="product_listdata">  
	<input type="hidden" value="<{$product_platform}>" name="product_platform"> 
	<input type="hidden" value="<{$product_id}>" name="product_id"> 

</form>
<form>
 <{if count($productlist)<=0}>
  <h2 style="text-align:center;">没有数据</h2>
  <{else}>
   <table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div">
    <tr>
      <th width="5%">选择</th>
      <th width="5%">产品ID</th>
      <th width="7%">产品编号</th>
      <th width="31%">产品名称</th>
      <th width="7%">版本号</th>
      <th width="7%">产品价格</th>
      <th width="7%">发布状态</th>
      <th width="7%">推荐状态</th>
      <th width="7%">添加人</th>
      <th width="9%">添加时间</th>
    </tr>
    <{foreach from=$productlist key=myID item=product}>
    <tr>
      <td width="5%"><input type="radio" name="productlist"  title="<{$product.product_name}>"  id="product_id<{$product.product_id}>" value="<{$product.product_id}>" ></td>
      <td width="5%"><{$product.product_id}></td>
      <td width="7%"><{$product.product_sn}></td>
      <td width="31%"><{$product.product_name}></td>
      <td width="7%"><{$product.product_version}></td>
      <td width="7%"><{$product.price}></td>
      <td width="7%"><{$product.product_state}></td>
      <td width="7%"><{$product.product_is_recommend}></td>
      <td width="7%"><{$product.product_add_user}></td>
      <td width="9%"><{$product.product_add_time}></td>
    </tr>
    <{/foreach}>
  </table>
<{/if}>
</form>
</body>
</html>
